#include "Rect.h"

Rect::Rect()
{
	x = y = width = height = 0;
}

Rect::Rect(Rect* rect)
{
	x = rect->x;
	y = rect->y;
	width = rect->width;
	height = rect->height;
}

Rect::Rect(int x, int y, int width, int height)
{
	this->x = x;
	this->y = y;
	this->width = width;
	this->height = height;
}

void Rect::Set(int x, int y, int width, int height)
{
	this->x = x;
	this->y = y;
	this->width = width;
	this->height = height;
}